package cn.itcast.bos.job.base;

import java.util.Date;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

import cn.itcast.bos.service.base.PromotionService;

public class PromotionJob  implements Job{
	@Autowired
	private PromotionService service;
	@Override
	public void execute(JobExecutionContext context) throws JobExecutionException {
		System.out.println("活动过期处理程序执行。。。");
		service.updateStatus(new Date());
	}

}
